using System;

namespace WindowsPhoneEssentials.Threading
{
    public interface IBackgroundWorker
    {
        void DoWork<TResult>(Func<TResult> doWork, Action<BackgroundResult<TResult>> workCompleted);
        void DoWork(Action doWork, Action<BackgroundResult> workCompleted);
    }
}